/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ineatconseil.yougo.wicket.dao;

import com.ineatconseil.yougo.dto.RequestTypeDto;
import com.ineatconseil.yougo.dto.UserDto;
import com.ineatconseil.yougo.wicket.bo.TypeDemande;
import com.ineatconseil.yougo.wicket.bo.TypeUtilisateur;
import com.ineatconseil.yougo.wicket.bo.Type;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.GenericType;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sun.jersey.api.client.WebResource;
import javax.ws.rs.core.MediaType;

/**
 *
 * @author nicolasger
 */
public class RequestTypesDao extends GenericDao {
	private static Logger logger = LoggerFactory.getLogger(RequestTypesDao.class);
	private static RequestTypesDao instance;
	
	public RequestTypesDao getInstance() {
		if(instance ==null) {
			instance = new RequestTypesDao();
		}
		return instance;
	}

	public  List<RequestTypeDto> getTypesDemande() {
		return call(null, new GenericType<List<RequestTypeDto>>() {});
	}

	@Override
	protected String getRelativeUrl() {
		return "requestTypes";
	}
}
